<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
<meta name="msapplication-tap-highlight" content="no">
<meta name="format-detection"content="telephone=no"/>

<link href="${basePath }common/hplus/css/bootstrap.min14ed.css" rel="stylesheet">
<link href="${basePath }common/hplus/css/font-awesome.min93e3.css" rel="stylesheet">
<link href="${basePath }common/hplus/css/animate.min.css" rel="stylesheet">
<link href="${basePath }common/hplus/css/style.min862f.css" rel="stylesheet">
<link href="${basePath }common/hplus/css/plugins/dataTables/dataTables.bootstrap.css" rel="stylesheet">
<link href="${basePath }css/common_h.css" rel="stylesheet"></link>


<!-- 弹出框 -->
<link href="${basePath }common/hplus/css/plugins/sweetalert/sweetalert.css" rel="stylesheet">
<script src="${basePath }common/hplus/js/plugins/sweetalert/sweetalert.min.js"></script>

<script src="${basePath }common/hplus/js/jquery.min.js"></script>
<script src="${basePath }common/hplus/js/bootstrap.min.js"></script>
<script src="${basePath }common/hplus/js/plugins/layer/layer.min.js"></script>
<script>
/**
 * 打开加载框
 */
function openLoading(){
	layer.load(0, {
	    shade: [0.3,'#fff'] //0.3透明度的白色背景
	});
}
/**
 * 关闭加载框
 */
function closeLoading(){
	layer.closeAll('loading');
}
/**
 * 跳转链接
 * @param url
 */
function forward(url){
	location.href = url;
}

/**
 * 删除确认框
 * @param callback 确定回调函数
 */
function deleteConfirm(callback){
	swal({
        title: "您确定要删除这条信息吗",
        text: "删除后将无法恢复，请谨慎操作！",
        type: "warning",
        showCancelButton: true,
        confirmButtonColor: "#DD6B55",
        confirmButtonText: "删除",
        cancelButtonText:"取消",
        closeOnConfirm: false
    }, callback);
}

/**
 * 成功提示框
 * @param msg 提示消息
 * @param callback 确定回调函数
 */
function successAlert(msg,callback){
	swal({
        title: msg,
        type: "success",
        confirmButtonColor: "#A5DC86",
        confirmButtonText: "确定"
    },callback);
}
/**
 * 失败提示框
 * @param msg 提示消息
 * @param callback 确定回调函数
 */
function errorAlert(msg,callback){
	swal({
        title: msg,
        type: "error",
        confirmButtonColor: "#ec4758",
        confirmButtonText: "确定"
    },callback);
}
/**
 * 警告提示框
 * @param msg 提示消息
 * @param callback 确定回调函数
 */
function warningAlert(msg,callback){
	swal({
        title: msg,
        type: "warning",
        confirmButtonColor: "#f7a54a",
        confirmButtonText: "确定"
    },callback);
}
/**
 * 列表通用搜索
 */
function searchFn(){
	$('#currPage').val(1);
	$('#search_from').submit();
}
</script>